#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20220814.sql ./mysql/db
cp ../sql/ry_config_20220510.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../yss-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy yss-gateway "
cp ../yss-gateway/target/yss-gateway.jar ./yss/gateway/jar

echo "begin copy yss-auth "
cp ../yss-auth/target/yss-auth.jar ./yss/auth/jar

echo "begin copy yss-visual "
cp ../yss-visual/yss-monitor/target/yss-visual-monitor.jar  ./yss/visual/monitor/jar

echo "begin copy yss-modules-system "
cp ../yss-modules/yss-system/target/yss-modules-system.jar ./yss/modules/system/jar

echo "begin copy yss-modules-file "
cp ../yss-modules/yss-file/target/yss-modules-file.jar ./yss/modules/file/jar

echo "begin copy yss-modules-job "
cp ../yss-modules/yss-job/target/yss-modules-job.jar ./yss/modules/job/jar

echo "begin copy yss-modules-gen "
cp ../yss-modules/yss-gen/target/yss-modules-gen.jar ./yss/modules/gen/jar

